scripty2

class S2.UI.Button

Description

Applies button-like behavior to an element.

Superclass

Constructor

new S2.UI.Button(element, options)

Instance methods

  • setEnabled #

    S2.UI.Button#setEnabled(isEnabled) -> this
    • isEnabled (Boolean): Whether the button should be enabled.
  • toElement #

    S2.UI.Button#toElement() -> Element

    Returns the DOM element for the button. This allows button instances to be passed to certain Prototype methods that expect elements, like Element#insert.